﻿#region Using

using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;

using Common.Properties;

#endregion

namespace Common.Base
{
    [DebuggerDisplay("Size {Width}x{Height}")]
    public sealed class Size
    {
        public Size()
        {
            this.Width = 0;
            this.Height = 0;
        }

        public Size(int width, int height)
        {
            this.Width = width;
            this.Height = height;
        }

        public Size(Size size)
        {
            this.Width = size.Width;
            this.Height = size.Height;
        }

        public int Height { get; set; }

        public int Width { get; set; }

        public static Size operator -(Size size, int op)
        {
            return new Size(size.Width - op, size.Height - op);
        }

        public static Size operator +(Size size, int op)
        {
            return new Size(size.Width + op, size.Height + op);
        }
    }
}